Parser=parser
DUG=debug
HTTP_SERVER=http_server
cc=g++

.PHONY:all
all:$(Parser) $(DUG) $(HTTP_SERVER)
$(Parser):parser.cc
	$(cc) -o $@ $^ -std=c++11 -lboost_regex -lboost_filesystem -lboost_system
$(DUG):server.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp
$(HTTP_SERVER):http_server.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp -lpthread
.PHONY:clean	
clean:
	rm -f $(Parser) $(DUG) $(HTTP_SERVER)